package com.hcs.mianshi.constant;

public interface RedisConstant {

    //user:signins:year:userId

    String USER_SIGN_IN_REDIS_KEY_PREFIX = "user:signins";

    static String getUserSignInRedisKey(int year, long userId) {
        return String.format("%s:%s:%s",USER_SIGN_IN_REDIS_KEY_PREFIX,year,userId);
    }
}
